<?php
namespace Home\Controller;
use Think\Controller;
class FormController extends Controller {


       public function index(){

       	$db = M('Form');
       	$result = $db->select();

       	$this->assign('list',$result);
       	$this->display();
    }


    public function add(){
    	$this->display();
    }

    
    public function insert(){
       
    $db   =   M('Form');
$data['title']  =   I('post.title');
$data['content']    =   I('post.content');
$data['create_time'] = time();
$db->add($data);
        
    }

public function del($id=0){
	$db = M('Data');
	$ret = $db->delete($id);
	if($ret===false){
		echo "error";
	}else {
		echo "影响了:" . $ret;
	}
}


     public function abc(){
		    $config =    array(
		    'fontSize'    =>    30,    // 验证码字体大小
		    'length'      =>    4,     // 验证码位数
		    'useNoise'    =>    false, // 关闭验证码杂点
			);
			$Verify =     new \Think\Verify($config);
			$Verify->entry();
			   }


}